<%-- 
    Document   : logi
    Created on : 18-feb-2012, 20:08:38
    Author     : Emanuel
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        
        
        <%
            String nombre = "";
            String pass = "";                       
            nombre = request.getParameter("Usuario");
            pass = request.getParameter("Password");
            System.out.println(nombre);
            System.out.println(pass);
        %>
        
        <%
            if(nombre.equalsIgnoreCase("admin") && pass.equalsIgnoreCase("admin")){
                %>                
                <jsp:forward page ="InicioAdmin.jsp"/>
                <%
            }else{
                %>                
                <jsp:forward page ="index.jsp"/>
                <%
            }
            
        %>
        
        
        
        <h1>Hello World!</h1>
    </body>
</html>
